package com.azure.entity;

import java.util.ArrayList;
import java.util.List;

public class AProductProvinceReportExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AProductProvinceReportExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(String value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(String value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(String value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(String value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(String value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(String value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLike(String value) {
            addCriterion("date like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotLike(String value) {
            addCriterion("date not like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<String> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<String> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(String value1, String value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(String value1, String value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andProvinceIsNull() {
            addCriterion("province is null");
            return (Criteria) this;
        }

        public Criteria andProvinceIsNotNull() {
            addCriterion("province is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceEqualTo(String value) {
            addCriterion("province =", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotEqualTo(String value) {
            addCriterion("province <>", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceGreaterThan(String value) {
            addCriterion("province >", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceGreaterThanOrEqualTo(String value) {
            addCriterion("province >=", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLessThan(String value) {
            addCriterion("province <", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLessThanOrEqualTo(String value) {
            addCriterion("province <=", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceLike(String value) {
            addCriterion("province like", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotLike(String value) {
            addCriterion("province not like", value, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceIn(List<String> values) {
            addCriterion("province in", values, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotIn(List<String> values) {
            addCriterion("province not in", values, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceBetween(String value1, String value2) {
            addCriterion("province between", value1, value2, "province");
            return (Criteria) this;
        }

        public Criteria andProvinceNotBetween(String value1, String value2) {
            addCriterion("province not between", value1, value2, "province");
            return (Criteria) this;
        }

        public Criteria andProduct1IsNull() {
            addCriterion("product1 is null");
            return (Criteria) this;
        }

        public Criteria andProduct1IsNotNull() {
            addCriterion("product1 is not null");
            return (Criteria) this;
        }

        public Criteria andProduct1EqualTo(String value) {
            addCriterion("product1 =", value, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1NotEqualTo(String value) {
            addCriterion("product1 <>", value, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1GreaterThan(String value) {
            addCriterion("product1 >", value, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1GreaterThanOrEqualTo(String value) {
            addCriterion("product1 >=", value, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1LessThan(String value) {
            addCriterion("product1 <", value, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1LessThanOrEqualTo(String value) {
            addCriterion("product1 <=", value, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1Like(String value) {
            addCriterion("product1 like", value, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1NotLike(String value) {
            addCriterion("product1 not like", value, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1In(List<String> values) {
            addCriterion("product1 in", values, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1NotIn(List<String> values) {
            addCriterion("product1 not in", values, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1Between(String value1, String value2) {
            addCriterion("product1 between", value1, value2, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct1NotBetween(String value1, String value2) {
            addCriterion("product1 not between", value1, value2, "product1");
            return (Criteria) this;
        }

        public Criteria andProduct2IsNull() {
            addCriterion("product2 is null");
            return (Criteria) this;
        }

        public Criteria andProduct2IsNotNull() {
            addCriterion("product2 is not null");
            return (Criteria) this;
        }

        public Criteria andProduct2EqualTo(String value) {
            addCriterion("product2 =", value, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2NotEqualTo(String value) {
            addCriterion("product2 <>", value, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2GreaterThan(String value) {
            addCriterion("product2 >", value, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2GreaterThanOrEqualTo(String value) {
            addCriterion("product2 >=", value, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2LessThan(String value) {
            addCriterion("product2 <", value, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2LessThanOrEqualTo(String value) {
            addCriterion("product2 <=", value, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2Like(String value) {
            addCriterion("product2 like", value, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2NotLike(String value) {
            addCriterion("product2 not like", value, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2In(List<String> values) {
            addCriterion("product2 in", values, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2NotIn(List<String> values) {
            addCriterion("product2 not in", values, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2Between(String value1, String value2) {
            addCriterion("product2 between", value1, value2, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct2NotBetween(String value1, String value2) {
            addCriterion("product2 not between", value1, value2, "product2");
            return (Criteria) this;
        }

        public Criteria andProduct3IsNull() {
            addCriterion("product3 is null");
            return (Criteria) this;
        }

        public Criteria andProduct3IsNotNull() {
            addCriterion("product3 is not null");
            return (Criteria) this;
        }

        public Criteria andProduct3EqualTo(String value) {
            addCriterion("product3 =", value, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3NotEqualTo(String value) {
            addCriterion("product3 <>", value, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3GreaterThan(String value) {
            addCriterion("product3 >", value, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3GreaterThanOrEqualTo(String value) {
            addCriterion("product3 >=", value, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3LessThan(String value) {
            addCriterion("product3 <", value, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3LessThanOrEqualTo(String value) {
            addCriterion("product3 <=", value, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3Like(String value) {
            addCriterion("product3 like", value, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3NotLike(String value) {
            addCriterion("product3 not like", value, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3In(List<String> values) {
            addCriterion("product3 in", values, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3NotIn(List<String> values) {
            addCriterion("product3 not in", values, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3Between(String value1, String value2) {
            addCriterion("product3 between", value1, value2, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct3NotBetween(String value1, String value2) {
            addCriterion("product3 not between", value1, value2, "product3");
            return (Criteria) this;
        }

        public Criteria andProduct4IsNull() {
            addCriterion("product4 is null");
            return (Criteria) this;
        }

        public Criteria andProduct4IsNotNull() {
            addCriterion("product4 is not null");
            return (Criteria) this;
        }

        public Criteria andProduct4EqualTo(String value) {
            addCriterion("product4 =", value, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4NotEqualTo(String value) {
            addCriterion("product4 <>", value, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4GreaterThan(String value) {
            addCriterion("product4 >", value, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4GreaterThanOrEqualTo(String value) {
            addCriterion("product4 >=", value, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4LessThan(String value) {
            addCriterion("product4 <", value, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4LessThanOrEqualTo(String value) {
            addCriterion("product4 <=", value, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4Like(String value) {
            addCriterion("product4 like", value, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4NotLike(String value) {
            addCriterion("product4 not like", value, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4In(List<String> values) {
            addCriterion("product4 in", values, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4NotIn(List<String> values) {
            addCriterion("product4 not in", values, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4Between(String value1, String value2) {
            addCriterion("product4 between", value1, value2, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct4NotBetween(String value1, String value2) {
            addCriterion("product4 not between", value1, value2, "product4");
            return (Criteria) this;
        }

        public Criteria andProduct5IsNull() {
            addCriterion("product5 is null");
            return (Criteria) this;
        }

        public Criteria andProduct5IsNotNull() {
            addCriterion("product5 is not null");
            return (Criteria) this;
        }

        public Criteria andProduct5EqualTo(String value) {
            addCriterion("product5 =", value, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5NotEqualTo(String value) {
            addCriterion("product5 <>", value, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5GreaterThan(String value) {
            addCriterion("product5 >", value, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5GreaterThanOrEqualTo(String value) {
            addCriterion("product5 >=", value, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5LessThan(String value) {
            addCriterion("product5 <", value, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5LessThanOrEqualTo(String value) {
            addCriterion("product5 <=", value, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5Like(String value) {
            addCriterion("product5 like", value, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5NotLike(String value) {
            addCriterion("product5 not like", value, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5In(List<String> values) {
            addCriterion("product5 in", values, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5NotIn(List<String> values) {
            addCriterion("product5 not in", values, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5Between(String value1, String value2) {
            addCriterion("product5 between", value1, value2, "product5");
            return (Criteria) this;
        }

        public Criteria andProduct5NotBetween(String value1, String value2) {
            addCriterion("product5 not between", value1, value2, "product5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}